﻿using System;

namespace Glue.Converters
{
    internal class DecimalStringConverter:GlueDefaultConverter<decimal,String>
    {
        internal override string InternalMapTowardsRight(decimal from)
        {
            return from.ToString();
        }

        internal override decimal InternalMapTowardsLeft(string from)
        {
            return Convert.ToDecimal(from);
        }
    }
}
